<template>
  <div>
    <TypeNav></TypeNav>
    <ListContainerVue></ListContainerVue>
    <TodayRecommend></TodayRecommend>
    <Rank></Rank>
    <Like></Like>
    <Floor
      v-for="(floor, index) in floorList"
      :key="index"
      :floor="floor"
    ></Floor>
    <Brand></Brand>
  </div>
</template>
<script>
import ListContainerVue from "./components/ListContainer/ListContainer.vue";
import TodayRecommend from "./components/TodayRecommend/TodayRecommend.vue";
import Rank from "./components/Rank/Rank.vue";
import Like from "./components/Like/Like.vue";
import Floor from "./components/Floor/Floor.vue";
import Brand from "./components/Brand/Brand.vue";
import { mapState } from "vuex";
export default {
  name: "Home",
  data() {
    return {};
  },
  mounted() {
    this.getFloorList();
  },
  methods: {
    getFloorList() {
      this.$store.dispatch("get_floorList");
    },
  },
  computed: {
    ...mapState({
      floorList: (state) => state.home.floorList,
    }),
  },
  components: {
    ListContainerVue,
    TodayRecommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
};
</script>

<style scoped>
</style>
